<div class="act">
	<? $this->widget('zii.widgets.CBreadcrumbs', array(
		'links'=>$this->bread,
		'htmlOptions'=>array('class'=>'act_str'),
		'separator'=>' &gt; '
	)); ?>
	<div class="act_title"><?=$item->title?></div>
	<div class="act_body">
		<div class="act_item">
			<div class="act_img"><img src="<?=$item->img?>"></div>
			<div class="act_date"><?=Yii::app()->dateFormatter->format('d MMMM', $item->date_start)?> — <?=Yii::app()->dateFormatter->format('d MMMM yyyy', $item->date_end)?></div>
			<? if (date('Y-m-d')>$item->date_end): ?>
<!--				<div class="act_end">Акция завершена</div>-->
			<? endif ?>
			<div class="act_text">
			<?=$item->body?>
			</div>
			<div class="clear"></div>
			<div class="atc_back">&lt; <a href="<?= CHtml::normalizeUrl(array('site/actions')) ?>">Вернуться к акциям</a></div>
		</div>
		<?
		$news=Actions::model()->findAll(array('condition'=>'`isVisible`=1  AND `date_end`>=:time AND `id`<>:id', 'params'=>array(':id'=>$item->id,':time'=>date('Y-m-d')),'order'=>'`date_end` DESC', 'limit'=>10));
		shuffle($news);
		$count=count($news);
		?>
		<div class="block_offers">
			<? if ($count): ?>
				<div class="offers_t">Смотрите также</div>
			<? endif ?>
			<div class="offers_b">
				<ul>
					<? for($i=0;$i<3;$i++): ?>
					<?if($count<=$i)continue;?>
					<li>
						<div class="off_item">
							<div class="off_img"><img src="<?=$news[$i]->img?>"></div>
							<div class="off_date"><?=Yii::app()->dateFormatter->format('d MMMM', $news[$i]->date_start)?> — <?=Yii::app()->dateFormatter->format('d MMMM yyyy', $news[$i]->date_end)?></div>
							<div class="off_title"><a href="<?= CHtml::normalizeUrl(array('site/actionView', 'id'=>$news[$i]->id)) ?>"><?=$news[$i]->title?></a></div>
							<div class="off_text"><?=$news[$i]->small?></div>
							<div class="off_preview"><a href="<?= CHtml::normalizeUrl(array('site/actionView', 'id'=>$news[$i]->id)) ?>">Подробнее</a></div>
						</div>
					</li>
					<? endfor;?>
				</ul>

			</div>
			<div class="clear"></div>
		</div>


	</div>
	<!--/Акции--->
</div>